<?php

require_once './include/common.inc.php';
require_once 'left.php';
require_once 'right.php';

$page_title = 'Acuity World WebShop';
$menu_id = 0;
$menu_str = PrintMenu();

$id = intval($_GET['id']);

if ($id<=0) {
    header("location:index.php");
}

$sql = "SELECT * FROM `med_promotion` WHERE id=$id";
$ary=$mysql->fetch($sql);

$sql_other="select * from `med_promotion` where id<>$id and publish=1 order by id desc limit 0,10";
$other_ary=$mysql->fetch($sql_other);
//while($rs = $db->fetch_array($query)) {
//    if ($rs['id'] ==  $id ) {
//        $product_ary = $rs;
//    } else {
//        $other_ary[$rs['id']] = $rs; 
//    }
//}


require_once PrintEot('header');
require_once PrintEot('left');
require_once PrintEot('current_specials');
require_once PrintEot('right');
require_once PrintEot('footer');

?>